/**
 *  综合集控总览 api
 *  @module api/home
 *  @author coder
 */

// API_HOST
import {
	API_HOST
} from '@/config'

// axios
import axios from '@u/axios'

/**
 * 产量总览
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const yieldOverview = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/intelligentMiningOverview/yieldOverview'
})

/**
 * 月度产量
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const monthlyYield = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/intelligentMiningOverview/monthlyYield'
})

/**
 * 工作面回采进度
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const collectionProgress = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/intelligentMiningOverview/CollectionProgress'
})

/**
 * 掘进总览
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const footageOverview = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/intelligentDrivingOverview/footageOverview'
})

/**
 * 月度进尺
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const monthlyFootage = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/intelligentDrivingOverview/monthlyFootage'
})

/**
 * 掘进进度
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const tunnellingProgress = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/intelligentDrivingOverview/tunnellingProgress'
})

/**
 * 总览
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const transportOverview = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/transportOverview/transportOverview'
})

/**
 * 近24小时皮带运输量分析
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const hourlyTransport = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/transportOverview/hourlyTransport'
})

/**
 * 近24小时皮带运行情况
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const hourlyBelts = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/transportOverview/hourlyBelts'
})

/**
 * 近24小时排风量
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const hourlyFan = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/ventilationOverview/hourlyFan'
})

/**
 * 风机风速与风量
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const venhourlyTransport = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/ventilationOverview/fanSpeed'
})

/**
 * 风机运行状态
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const fanRunState = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/ventilationOverview/fanRunState'
})

/**
 * 近24小时供气压力
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const airFeed = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/pressureBlowerOverview/airFeed'
})

/**
 * 近一个月压风机累计运行时长
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const monthlyRunningTimeCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/pressureBlowerOverview/monthlyRunningTimeCount'
})

/**
 * 压风机状态
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pressureBlowerState = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/pressureBlowerOverview/pressureBlowerState'
})

/**
 * 近24小时抽采负压
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const dailyPressure = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/gasOverview/dailyPressure'
})

/**
 * 近一个月瓦斯泵累计运行时长
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const gasOverviewTimeCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/gasOverview/monthlyRunningTimeCount'
})

/**
 * 瓦斯泵状态
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pumpState = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/gasOverview/pumpState'
})

/**
 * 总览
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const electricOverview = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/electricPowerOverview/electricOverview'
})

/**
 * 设备概览
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const deviceInfo = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/electricPowerOverview/deviceInfo'
})

/**
 * 设备告警概览
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const warningInfo = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/electricPowerOverview/warningInfo'
})

/**
 * 总览
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const drainageOverview = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/drainageOverview/drainageOverview'
})

/**
 * 水仓状态
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const waterSumpState = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/drainageOverview/waterSumpState'
})

/**
 * 排水泵状态
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const waterPump = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/integratedControl/drainageOverview/waterPump'
})